<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="dataUrl"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: false
				},
				dataUrl: ''
			}
		},
		onLoad(option) {
			const eventChannel = this.getOpenerEventChannel();
			eventChannel.on('url', (data) => {
				this.dataUrl = data;
			})
		}
	}
</script>
